//
//  CellAbout.m
//  Youhuiju
//
//  Created by liuovyue on 16/8/29.
//  Copyright © 2016年 yutenys. All rights reserved.
//

#import "CellAbout.h"

@interface CellAbout()
@property (strong, nonatomic) IBOutlet UILabel *labelTitle;

@property (strong, nonatomic) IBOutlet UIImageView *imageGongsi;


@end

@implementation CellAbout



- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.backgroundColor = [UIColor colorWithHexString:@"#ffe1d7"];
    
    self.labelTitle.numberOfLines = 0;
    self.labelTitle.textColor = [UIColor colorWithHexString:@"333333"];
    //字体间距
    NSMutableParagraphStyle *paragrah = [[NSMutableParagraphStyle alloc]init];
    paragrah.lineSpacing = 6;
    NSDictionary *dic = @{NSParagraphStyleAttributeName:paragrah};
    NSMutableAttributedString *attributeStr = [[NSMutableAttributedString alloc]initWithString:self.labelTitle.text attributes:dic];
    //[attributeStr addAttribute:dic value:nil range:NSMakeRange(0, self.labelTitle.text.length - 1)];
    self.labelTitle.attributedText = attributeStr;
//    CALayer *layer = [self.imageGongsi layer];
//    //layer.borderColor = [[UIColor whiteColor] CGColor];
//    layer.borderWidth = 3.0f;
//   
//    [self.imageGongsi.layer setMasksToBounds:YES];;
//    self.imageGongsi.layer.shadowColor = [UIColor colorWithHexString:@"ffe1d7"].CGColor;
//    self.imageGongsi.layer.shadowColor =[UIColor colorWithRed:0.0 green:0.0 blue:1.0 alpha:0.347467672413793].CGColor;
//    self.imageGongsi.layer.shadowOffset = CGSizeMake(4, 4);
//    self.imageGongsi.layer.shadowOpacity = 0.5;
//    self.imageGongsi.layer.shadowRadius = 10.0;
    
    
    UIBezierPath *shadowPath = [UIBezierPath bezierPathWithRect:self.imageGongsi.bounds];
    
    self.imageGongsi.layer.masksToBounds = NO;
    
    self.imageGongsi.layer.shadowColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.364762931034483].CGColor;
    
    self.imageGongsi.layer.shadowOffset = CGSizeMake(0, 3);
    
    self.imageGongsi.layer.shadowOpacity = 0.35f;
    self.imageGongsi.layer.shadowRadius = 4;
    self.imageGongsi.layer.shadowPath = shadowPath.CGPath;
    
    
    //CALayer *layer=[backView layer];
//    [layer setCornerRadius:10.0];
//    
//    [layer setBorderWidth:1];
//    
//    [layer setBorderColor:[[UIColor blackColor] CGColor]];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
